﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AdministracionAreasComunesWeb.Models.Reservar.Reservar>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Reservar Areas Comunes</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Formulario de Reserva</legend>
            
          <div class="editor-field">
                <strong>Ingresar Datos del Propietario</strong></div>

                 <div class="editor-label">
               <%: Html.LabelFor(model => model.Nombre) %>
                </div>
             <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Nombre) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Apellido) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Apellido) %>
                <%: Html.ValidationMessageFor(model => model.Apellido) %>
            </div>

            <div class="editor-field">
                <strong>Elegir Area Comun</strong></div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.areacomun) %>
            </div>
            <div class="editor-label">
                <%: Html.TextBoxFor(model => model.areacomun) %>
            </div>
                     
            <div class="editor-field">
                <strong>Nro de Horas a reservar</strong></div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.horas) %>
            </div>
            <div class="editor-label">
                <%: Html.TextBoxFor(model => model.horas) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Ir a Reservas", "ListadoReserva") %>
    </div>

</asp:Content>

